<?php

echo $rani;
$rani = manu;
echo $$rani;
echo $rani;
$rani = 'this is rricha';
$rani2 = "this is rricha";
$nimish = 5;
echo 'this is $nimish';
echo "this is $nimish";
$here = "/home/httpd/html/test ";
list ($j1,$j2,$j3,$j4,$j5) = split('/',$here);
print "$j3";
print "$j1";
print "$j2";
print "$j4";
print "$j5";


if ((string)'-1') { print 'ouch'; } else { print 'echo'; }
$p = getcwd();
echo $p;

echo "<br/>";
$str = "nimishp";
$l = strlen($str);
$endl = $l-1;
$startl = 0;
while($startl < $endl)
{
$char = $str[$startl];
$str[$startl] = $str[$endl];
$str[$endl] = $char;
$startl ++;
$endl --;
}
echo $str;

echo "<br/>";
$str = "I am nimishp";
$newstr = strrev($str);
echo $newstr;

echo "<br/>";

$i = 0;
$first = $newstr[$i];
while($c=$newstr[$w])
{
$revStr = $c.$revStr;
$w=$w+1;
}

echo $revStr;

echo 'Ending tag excluded'; ?>
<p>But html is still visible</p>

<? echo (int) ( (0.1 + 0.7) * 10 );

$str = <<<EOD
Example of string
spanning multiple lines
using heredoc syntax.
EOD;

echo $str;
?>
<!-- -->